<?php
/**
 * Created by PhpStorm.
 * User: meiyun1
 * Date: 2017/2/23
 * Time: 下午2:01
 */

namespace App\Contracts\Repositories;

use App\Models\ActivityModel\ActivityModel;

interface ActivityModelRepository
{

    /**
     * @param ActivityModel $activityModel
     * @return mixed
     */
    public function create(ActivityModel $activityModel);

    /**
     * @return mixed
     */
    public function findAll();


    public function findOne($id);

    /**
     * @param string $rule
     *
     * @return ActivityModel|null
     */
    public function findByRule($rule);
}
